# This is a makefile

all: sv_node

sv_node: sv_node.o utilities.o status.o join.o notify.o softrestart.o accept.o connect.o write.o read.o terminalCMD.o timer.o dispatcher.o store.o search.o delete.o get.o
	g++ sv_node.o utilities.o status.o join.o notify.o softrestart.o  accept.o connect.o write.o read.o terminalCMD.o timer.o dispatcher.o store.o search.o delete.o get.o -o sv_node -lsocket -lnsl -lcrypto

utilities.o: utilities.cc
	g++ -c -Wall utilities.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib
	
status.o: status.cc
	g++ -c -Wall status.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib
	
join.o: join.cc
	g++ -c -Wall join.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

notify.o: notify.cc
	g++ -c -Wall notify.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

softrestart.o: softrestart.cc
	g++ -c -Wall softrestart.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

sv_node.o: sv_node.cc
	g++ -c -Wall sv_node.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

accept.o: accept.cc
	g++ -c -Wall accept.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

connect.o: connect.cc
	g++ -c -Wall connect.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

write.o: write.cc
	g++ -c -Wall write.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

read.o: read.cc
	g++ -c -Wall read.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

timer.o: timer.cc
	g++ -c -Wall timer.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

terminalCMD.o: terminalCMD.cc
	g++ -c -Wall terminalCMD.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

dispatcher.o: dispatcher.cc
	g++ -c -Wall dispatcher.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib
	
store.o: store.cc
	g++ -c -Wall store.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib
	
search.o: search.cc
	g++ -c -Wall search.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

delete.o: delete.cc
	g++ -c -Wall delete.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib

get.o: get.cc
	g++ -c -Wall get.cc -I/home/scf-22/csci551b/openssl/include -L/home/scf-22/csci551b/openssl/lib
	
clean:
	rm -rf *.o sv_node
